/**
*┌──────────────────────────────────────────────────────────────┐
*│　描    述：历史成交记录                                                    
*│　作    者：gaotang                                              
*│　版    本：1.0   模板代码自动生成                                              
*│　创建时间：2019-02-13 12:39:31                            
*└──────────────────────────────────────────────────────────────┘
*┌──────────────────────────────────────────────────────────────┐
*│　命名空间: BestTrader.Cms.Models                                  
*│　类    名：History_DealedOrderReport                                     
*└──────────────────────────────────────────────────────────────┘
*/
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BestTrader.Cms.Models
{
	/// <summary>
	/// gaotang
	/// 2019-02-13 12:39:31
	/// 历史成交记录
	/// </summary>
	[Table("History_DealedOrderReport")]
	public class History_DealedOrderReport
	{
		/// <summary>
		/// 主键
		/// </summary>
		[Key]
		public Int32 Id {get;set;}

		/// <summary>
		/// 成交时间
		/// </summary>
		[MaxLength(23)]
		public String DealedTime {get;set;}

		/// <summary>
		/// 组织机构
		/// </summary>
		[MaxLength(64)]
		public String NodeName {get;set;}

		/// <summary>
		/// 成交编号
		/// </summary>
		[MaxLength(64)]
		public String DealedNumber {get;set;}

		/// <summary>
		/// 用户
		/// </summary>
		[MaxLength(64)]
		public String UserName {get;set;}

		/// <summary>
		/// 客户名称
		/// </summary>
		[MaxLength(64)]
		public String RealName {get;set;}

		/// <summary>
		/// 账户
		/// </summary>
		[MaxLength(64)]
		public String AccountName {get;set;}

		/// <summary>
		/// 交易所
		/// </summary>
		[MaxLength(16)]
		public String DispExch_Code {get;set;}

		/// <summary>
		/// 产品
		/// </summary>
		[MaxLength(16)]
		public String PfCode {get;set;}

		/// <summary>
		/// 产品类型
		/// </summary>
		[MaxLength(16)]
		public String OptionType {get;set;}

		/// <summary>
		/// 执行价
		/// </summary>
		[MaxLength(18)]
		public Decimal? StrikePrice {get;set;}

		/// <summary>
		/// 交割期
		/// </summary>
		[MaxLength(16)]
		public String LastTradingDate {get;set;}

		/// <summary>
		/// LME开仓日期
		/// </summary>
		[MaxLength(16)]
		public String LMESettleDate {get;set;}

		/// <summary>
		/// 调期日期
		/// </summary>
		[MaxLength(16)]
		public String Carry_Date {get;set;}

		/// <summary>
		///  
		/// </summary>
		[MaxLength(16)]
		public String TradeStyle {get;set;}

		/// <summary>
		/// 成交方向
		/// </summary>
		[MaxLength(16)]
		public String TradeSide {get;set;}

		/// <summary>
		/// 成交数量
		/// </summary>
		[Required]
		[MaxLength(10)]
		public Int32 Quantity {get;set;}

		/// <summary>
		/// 成交价格
		/// </summary>
		[MaxLength(18)]
		public Decimal? DealedPrice {get;set;}

		/// <summary>
		/// 成交金额
		/// </summary>
		[MaxLength(18)]
		public Decimal? DealedAsset {get;set;}

		/// <summary>
		/// 客户手续费
		/// </summary>
		[MaxLength(18)]
		public Decimal? CustFee {get;set;}

		/// <summary>
		/// 上手代号
		/// </summary>
		[MaxLength(32)]
		public String FCM_Code {get;set;}

		/// <summary>
		/// 上手名称
		/// </summary>
		[MaxLength(32)]
		public String FCM_Name {get;set;}

		/// <summary>
		/// 上手手续费
		/// </summary>
		[MaxLength(18)]
		public Decimal? FCM_Fee {get;set;}

		/// <summary>
		/// 净手续费
		/// </summary>
		[MaxLength(18)]
		public Decimal? CCustFee {get;set;}

		/// <summary>
		/// 币种
		/// </summary>
		[MaxLength(16)]
		public String Currency {get;set;}

		/// <summary>
		/// 成交日期
		/// </summary>
		[MaxLength(23)]
		public DateTime? DealedDate { get;set;}

		/// <summary>
		/// 定单编号
		/// </summary>
		[MaxLength(32)]
		public String Order_ID {get;set;}

		/// <summary>
		/// 客户组号
		/// </summary>
		[MaxLength(32)]
		public String CustGroup {get;set;}

		/// <summary>
		/// 上手成交号
		/// </summary>
		[MaxLength(32)]
		public String FCM_Exec_ID {get;set;}

		/// <summary>
		/// 订单通道
		/// </summary>
		[MaxLength(32)]
		public String DataFeeder {get;set;}

		/// <summary>
		/// 强平
		/// </summary>
		[MaxLength(16)]
		public String ForceClose {get;set;}

		/// <summary>
		/// 手工修改手续费标志
		/// </summary>
		[MaxLength(16)]
		public String ByManual {get;set;}

		/// <summary>
		/// 添加人
		/// </summary>
		[Required]
		[MaxLength(10)]
		public Int32 AddManagerId {get;set;}

		/// <summary>
		/// 添加时间
		/// </summary>
		[Required]
		[MaxLength(23)]
		public DateTime AddTime {get;set;}

		/// <summary>
		/// 修改人
		/// </summary>
		[MaxLength(10)]
		public Int32? ModifyManagerId {get;set;}

		/// <summary>
		/// 修改时间
		/// </summary>
		[MaxLength(23)]
		public DateTime? ModifyTime {get;set;}

		/// <summary>
		/// 是否删除
		/// </summary>
		[Required]
		[MaxLength(1)]
		public Boolean IsDelete {get;set;}


	}
}
